﻿// Copyright © Microsoft Corporation.  All Rights Reserved.
// This code released under the terms of the 
// Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.)

using System;
using Microsoft.Phone.Controls;

namespace FeatureOverview.Features.Tasks
{
    public partial class MediaPlayerLauncherTaskSample : PhoneApplicationPage
    {
        public MediaPlayerLauncherTaskSample()
        {
            InitializeComponent();

            this.Loaded += (s, e) =>
                {
                    Microsoft.Phone.Tasks.MediaPlayerLauncher mpl = new Microsoft.Phone.Tasks.MediaPlayerLauncher();
                    //mpl.Location = "http://mschnlnine.vo.llnwd.net/d1/ch9/7/0/8/6/7/4/internet_2MB_ch9.wmv";
                    mpl.Media = new Uri("http://mschnlnine.vo.llnwd.net/d1/ch9/7/0/8/6/7/4/internet_2MB_ch9.wmv");
                    mpl.Controls = Microsoft.Phone.Tasks.MediaPlaybackControls.All;
                    mpl.Show();
                };
        }
    }
}